import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '../components/HelloWorld'
import Test from '../components/Test'
import NextTickTest from "../components/nextTick/NextTickTest"
import NextTickTest2 from "../components/nextTick/NextTickTest2"
import layout_cs from "../views/layout_cs"
import layout from "../views/layout"
import header_demo from "../views/header_demo"
import crealize from "../components/componentsdemo/component1/crealize"


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/test',
      name: 'Test',
      component: Test
    },
    {
      path: '/NextTickTest',
      name: 'NextTickTest',
      component: NextTickTest
    },
    {
      path: '/NextTickTest2',
      name: 'NextTickTest2',
      component: NextTickTest2
    },
    {
      path: '/layout_cs',
      name: 'layout_cs',
      component: layout_cs
    },

    {
      path: '/crealize',
      name: 'crealize',
      component: crealize
    },
    {
      path: '/layout',
      name: 'layout',
      component: layout,
      children: [
        {
          path: '/header_demo',
          name: 'header_demo',
          component: header_demo
        },
      ]
    }


  ]
})
